﻿using Message_Management.FAC;
using Message_Management.IDAL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Message_Management.BLL
{
    /// <summary>
    /// 学生管理类
    /// 一组：杨帆 2018/5/18
    /// </summary>
    public class Student_InfoBLL
    {
        /// <summary>
        /// 利用工厂创建Student_InfoDAL实例
        /// 一组：杨帆 2018/5/18
        /// </summary>
        private static IStudent_InfoDAL stuDal = Factory.CreatDal<IStudent_InfoDAL>();
        /// <summary>
        /// 登录
        /// 一组：杨帆 2018/5/18
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <param name="pwd">密码</param>
        /// <returns></returns>
        public DataTable Login(string userName, string pwd)
        {
            return stuDal.Login(userName, pwd);
        }
    }
}
